package com.qian.service.ddj.entity;

import com.yaowk.service.common.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import java.util.Date;


@Entity
@DynamicUpdate
@DynamicInsert
@Getter
@Setter
@ToString
public class DdjPayFailed extends BaseEntity<Integer> {

    @CreationTimestamp
    private Date createTime;
    @Column(columnDefinition = "text")
    private String content;
    private String reason;
    @Column(columnDefinition = "text")
    private String params;
    private String outOrderNo;
    @ManyToOne
    @JoinColumn(name = "ddj_user_id")
    private DdjUser user;
}
